import request from '@/utils/request'

// 查询底部栏信息列表
export function listBottom(query) {
  return request({
    url: '/system/bottom/list',
    method: 'get',
    params: query
  })
}

// 查询底部栏信息详细
export function getBottom(bottomId) {
  return request({
    url: '/system/bottom/' + bottomId,
    method: 'get'
  })
}

// 新增底部栏信息
export function addBottom(data) {
  return request({
    url: '/system/bottom',
    method: 'post',
    data: data
  })
}

// 修改底部栏信息
export function updateBottom(data) {
  return request({
    url: '/system/bottom',
    method: 'put',
    data: data
  })
}

// 删除底部栏信息
export function delBottom(bottomId) {
  return request({
    url: '/system/bottom/' + bottomId,
    method: 'delete'
  })
}
